<template>
  <div class="flowArea" ref="flowArea">
    <flowArea :height="height" class="leftArea"></flowArea>
  </div>
</template>

<script>
import flowArea from "@/views/index/Index/pages/flowArea";
export default {
  components: {
    flowArea
  },
  data () {
    return {
      height: 200
    };
  },
  mounted () {
    this.$nextTick(() => {
      if (this.$refs.flowArea) {
        this.height = this.$refs.flowArea.offsetHeight;
        console.log(this.height);
      }
    });
  }
};
</script>

<style lang="less" scoped>
.flowArea {
  width: 100%;
  height: 100%;
  background: #ffffff;
}
.leftArea {
  width: 100%;
  background-color: #ffffff;
  padding: 0 8px;
}
</style>